#include "exceptions.h"


namespace Database
{

//
// Root exception types - internal and runtime
//


EDatabase::EDatabase(const unsigned int code, const char * const message)
	: code_(code)
{
	::snprintf(message_, sizeof(message_) / sizeof(char), "E%08X: %s", code_, message);
}


EDatabase::~EDatabase() throw()
{ }


const char * EDatabase::what() const throw()
{
	return message_;
}


}	// namespace Database

